package android.tusnotas.parser.subscription;

import org.htmlcleaner.XPatherException;

import android.tusnotas.beans.PushStatus;
import android.tusnotas.exception.ProcessingInstancesException;

import com.thoughtworks.xstream.XStream;

// works for subscription and unsubscription

public class PushSubscriptionParser {

	public PushStatus parseXML(String XML) throws ProcessingInstancesException, XPatherException{
		XStream stream = new PushSubscriptionXStream();
		PushStatus status = ((PushStatus) stream.fromXML(XML));
		return status;
	}

}
